package xin.sunzy.spring.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * description: [描述文本][optional]
 * email: <a href="sunzhenyu@terminus.io">孙振宇</a>
 * author: ginkgo
 * date: 2018/3/11
 */
@Data
@Component
@ConfigurationProperties(prefix = "xin.sunzy")
//PropertySource 不能读取yml文件，只能读取properties文件
@PropertySource("classpath:config/person.properties")
public class Person implements java.io.Serializable {

    private static final long serialVersionUID = 2454806053053465182L;

    private String name;

    private String want;
}
